<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.util.List" %>
<%@ page import="oneroom.admin.code.codeModel" %>
<jsp:useBean id="codeDao" scope="page" class="oneroom.admin.code.codeDao" />
<%
	String maincode = request.getParameter("maincode");
	List codeList = codeDao.getDtlList(maincode);
%>
<br />
<table width="600px;" border="0" cellspacing="0" cellpadding="0">
<tr>
<%
	for(int i = 0; i < codeList.size(); i++){
		codeModel mode = (codeModel)codeList.get(i);
%>
<td style="width:100px;"><a class="c" href="javascript:seachSubway('<%=mode.getCode() %>','<%=maincode%>')"><%=mode.getCodename() %></a></td>	
<%if(((i+1)%5) == 0 && i > 0) {%>
</tr><tr>
<%} %>
<%
	}
%>
</tr>
</table>